package com.ldatum.crm.service;

import java.util.List;

import com.ldatum.crm.domain.Employee;

public interface EmployeeService {
	void add(Employee employee) throws Exception;
	void delete(Employee employee,int id) throws Exception;
	void update(Employee employee,int id) throws Exception;
	Employee findById(Class<Employee> clazz,int id) throws Exception;
	Employee findByLoginname(Class<Employee> clazz, String loginname) throws Exception;
	List<Employee> list(Class<Employee> clazz) throws Exception;
}
